package com.itheima.day03_streamControl;

public class Demo9_zhufeng {
    public static void main(String[] args) {
        double peakHeight = 8848860;
        double paperThickness = 0.1;

        int count = 0;

        while (paperThickness < peakHeight){
            paperThickness *= 2;
            count++;
        }
        System.out.println("paperThickness = " + paperThickness);
        System.out.println("count = " + count);
    }
}
